package com.service.pay.diamond.listener;

import com.service.pay.diamond.event.RechargeOrderEvent;
import com.service.pay.diamond.model.OrderModel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class RechargeOrderEventListener {
    @EventListener
    public void rechargeOrderEvent(RechargeOrderEvent event) {
        OrderModel orderModel = event.getOrderModel();
        log.warn("处理充值订单 {}", orderModel);
    }
}
